package com.itheima.a05threadmethod2;

public class ThreadDemo {
    public static void main(String[] args) {
        //测试线程的优先级
        MyRunable mr=new MyRunable();

        Thread t1=new Thread(mr,"飞机");
        Thread t2=new Thread(mr,"坦克");

        //设置线程的优先级
        t1.setPriority(1);
        t2.setPriority(10);

        //启动线程
        t1.start();
        t2.start();
    }
}
